package es.uned.ii.si3.business;

import java.sql.Connection;
import java.util.List;
import org.apache.log4j.Logger;
import es.uned.ii.si3.dao.CentroDAOImpl;
import es.uned.ii.si3.model.Centro;

public class GestionCentros {

	private CentroDAOImpl dao;
	private Centro centro;
	
	public GestionCentros(){
		dao = new CentroDAOImpl();
	}
	
	
	/**
	 * @return the centro
	 */
	public Centro getCentro() {
		return centro;
	}

	/**
	 * @param centro the centro to set
	 */
	public void setCentro(Centro centro) {
		this.centro = centro;
	}

    public List<Centro> getAllCentros(){
 	   return dao.getAllCentros();
 	}

}
